15 Lecture
CS504
Midterm & Final Term Short Notes
UML Object Model Notations
UML Object Model notations provide a standardized and visual representation of object-oriented systems. They include class diagrams, objects, associations, attributes, methods, and multiplicity, enabling clear communication and visualization of
Important Mcq's
Midterm & Finalterm Prepration
Past papers included
Download PDF
Q: Which UML diagram is used to depict the static structure of a system? a) Use Case Diagram b) Class Diagram c) Activity Diagram d) Sequence Diagram Solution: b) Class Diagram Q: What does the rectangle in a Class Diagram represent? a) Attribute b) Method c) Object d) Association Solution: a) Attribute Q: In UML notation, what symbol is used to represent an association between two classes? a) Solid line b) Dashed line c) Arrowhead d) Diamond Solution: a) Solid line Q: What does the diamond symbol at the end of an association line indicate? a) Aggregation b) Composition c) Inheritance d) Dependency Solution: b) Composition Q: In UML, what multiplicity notation "1..*" represents in an association? a) Zero or one b) Zero or more c) One or more d) Exactly one Solution: c) One or more Q: Which UML diagram is used to show the dynamic behavior of objects during runtime? a) State Diagram b) Object Diagram c) Activity Diagram d) Sequence Diagram Solution: d) Sequence Diagram Q: What does a solid vertical line in an Object Diagram represent? a) Association b) Inheritance c) Lifeline d) Dependency Solution: c) Lifeline Q: In a Class Diagram, what is the purpose of a stereotype, such as <<interface>> or <<abstract>>? a) To represent an association b) To show a dependency c) To specify the visibility of attributes d) To indicate special class types or properties Solution: d) To indicate special class types or properties Q: What does the "<<extend>>" stereotype represent in an Activity Diagram? a) Decision point b) Loop c) Synchronization bar d) Conditional execution Solution: d) Conditional execution Q: In UML notation, how are classes representing abstract types denoted? a) Italic text b) Underlined text c) Bold text d) Dashed border Solution: a) Italic text
Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included
Download PDF
Q: What is the purpose of a Class Diagram in UML? A: Class Diagrams represent the static structure of a system, illustrating classes, their attributes, methods, and relationships, providing a blueprint for the software system. Q: Describe the significance of associations in a Class Diagram. A: Associations in a Class Diagram represent relationships between classes, indicating how objects of one class are related to objects of another class. Q: Explain the difference between Aggregation and Composition relationships in UML. A: Aggregation represents a "whole-part" relationship where parts can exist independently, while Composition represents a stronger "whole-part" relationship where the parts cannot exist without the whole. Q: What is the purpose of the stereotype notation (<< >>) in UML Class Diagrams? A: Stereotypes are used to indicate special properties or types of classes, such as abstract classes (<<abstract>>) or interfaces (<<interface>>). Q: What do the solid and dashed lines in an Association relationship signify? A: The solid line represents a regular association, while the dashed line represents a navigable association, indicating the direction of the relationship between classes. Q: What is the role of a Multiplicity notation (e.g., "1..*" or "0..1") in an Association relationship? A: Multiplicity indicates the number of instances of one class that are associated with one instance of the other class, specifying cardinality. Q: Describe the purpose of a Sequence Diagram in UML. A: Sequence Diagrams illustrate the dynamic behavior of objects during runtime, showcasing the sequence of interactions between objects and the order of message exchanges. Q: What is a Lifeline in a Sequence Diagram, and what does it represent? A: A Lifeline represents the existence of an object and is represented by a vertical line on the diagram. It depicts the timeline of the object's interactions. Q: What is the significance of a Message in a Sequence Diagram? A: Messages represent the communication between objects in a Sequence Diagram. They indicate the passing of information or a method call from one object to another. Q: How do Object Diagrams differ from Class Diagrams in UML? A: Object Diagrams represent a specific instance of a system at a particular moment, showing objects and their relationships, while Class Diagrams illustrate the static structure of the system, focusing on classes and their associations.